﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="changePass.aspx.cs" Inherits="changePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
    <tr>
        <td class="auto-style1" style="height: 30px">Welcome&nbsp;&nbsp;
            <asp:Label ID="LB" runat="server" Text="Label"></asp:Label>
        </td>
        <td style="height: 30px">
        </td>
    </tr>
    <tr>
        <td class="auto-style1" style="height: 37px">New Password :</td>
        <td style="height: 37px">
            <asp:TextBox ID="newPassTextBox" runat="server" cssclass="txtbox" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="newPassTextBox" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style1" style="height: 44px">Confirm New Password :</td>
        <td style="height: 44px">
            <asp:TextBox ID="renewPassTextBox" runat="server" cssclass="txtbox" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="renewPassTextBox" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="newPassTextBox" ControlToValidate="renewPassTextBox" ErrorMessage="Password not matched" ForeColor="Red"></asp:CompareValidator>
            <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="renewPassTextBox" ErrorMessage="*must contain numbers , special charachters , upper case and at least 8 charachters" ForeColor="Red" ValidationExpression="^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style1">&nbsp;</td>
        <td>
            <asp:Button ID="change" runat="server" OnClick="change_Click" Text="Change "  cssclass="txtbox" BackColor="Blue" ForeColor="White" />
        </td>
    </tr>
</table>
</asp:Content>

